package kw.android.AProject;

import android.app.Activity;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;

public class MainActivity extends Activity {
	
	private final String TAG = "MainActivity";
	// 2011-03-15 안태형
	// 멀티 터치 구현.

	// 2011-03-16 안태형
	// 멀티 터치 클래스화.(MultiTouch)

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		// MapBackground mapBackground = new
		// MapBackground(MainActivity.this,null);
		setContentView(new MapBackground(MainActivity.this,null));//R.layout.main);		
		// 가로 고정
//		setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
		
		Intent intent = new Intent(getApplicationContext(), Intro.class);
		startActivity(intent);
	}

	
	
	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// TODO Auto-generated method stub
		super.onCreateOptionsMenu(menu);
		MenuInflater inflater = getMenuInflater();    
		inflater.inflate(R.menu.option_main,menu);
		return true;	
	}



	@Override
	public boolean onMenuItemSelected(int featureId, MenuItem item) {
		// TODO Auto-generated method stub
		switch (item.getItemId()) {
		case R.id.category: 
			startActivity(new Intent(this, CategoryActivity.class));
			break;
		}
		return true;
	}
	
	
	
}
